home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Shareware Grab Bag
/
Shareware Grab Bag.iso
/
010
/
pianodoc.arc
/
TECHNCAL.DOC
< prev
next >
Wrap
Text File
|
1984-12-01
|
2KB
|
42 lines
TECHNICAL NOTES ABOUT PIANO MAN AND RELATED PROGRAMS
PIANO MAN and its utilities are written in TURBO PASCAL. Within the
programs, the notes are handled as variables with the structure:
type
FiledNote = record
octave, note, staccato : byte;
duration : integer;
end;
The .MUS files are simply:
type
NoteFile = file of FiledNote;
-*-
PIANOMAN holds the entire tune in memory--it can make use of ALL your memory.
The utilities simply process data from one or more input FILES into an output
FILE, so their memory requirements are relatively negligible.
-*-
In order to get at the Key Release Codes, PIANO MAN replaces the normal
keyboard interrupt with its own much simpler version. The new interrupt does
nothing with the keyboard information except put the received SCAN CODE at a
particular memory location. (The normal interrupt screens out the release
codes, converts to ASCII, checks for shift keys, etc.). For reasons as yet
unclear to me, sending too much information at once to this simple interrupt
(i.e., pressing many keys wildly and rapidly), can crash the program. That's
not too bad, but it crashes with the keyboard disabled for normal use, so your
only recourse is to physically turn the PC off and on again.
-*-
PIANO MAN needs at least 128K. With that much, you can record about 3,600
notes. If you want more, you can record your composition in sections and save
them with the [A]dd option. Then process the resulting file with PLAYER PIANO
and enjoy it!